// <copyright file="ButtonTypeSplit.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;

namespace YUIAspNetDemo.Button
{
    public partial class ButtonTypeSplit : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.btnSplit.Click += new EventHandler<YUIAspNet.ButtonEventArgs>(btnSplit_Click);
        }

        void btnSplit_Click(object sender, YUIAspNet.ButtonEventArgs e)
        {
            if (e.Item != null)
                this.lblPost.Text = "Subitem <b>" + e.Item.Text + "</b> was clicked!";
            else
                this.lblPost.Text = "Main item was clicked!";
        }
    }
}
